package com.wmz.crm.settings.mapper;

import com.wmz.crm.settings.entity.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);

    /**
     * 根据用户名和密码查询用户
     * @param map
     * @return 查询的结果
     */
    User selectUserByLoginActAndLoginPwd(Map<String,Object> map);
    List<User> selectAllUsers();
}
